home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / dpmigcc5.zip / RSX / SOURCE / SIGNALS.H < prev    next >
C/C++ Source or Header  |  1994-12-12  |  1KB  |  59 lines

  1. /* Copyright    Rainer Schnitker 92,93 */
  2.  
  3. #ifndef _SIGNALS_H
  4. #define _SIGNALS_H
  5.  
  6. /* signal no */
  7. #define SIGHUP      1
  8. #define SIGINT      2
  9. #define SIGQUIT   3
  10. #define SIGILL      4
  11. #define SIGTRAP   5
  12. #define SIGABRT   6
  13. #define SIGEMT      7
  14. #define SIGFPE      8
  15. #define SIGKILL   9
  16. #define SIGBUS     10
  17. #define SIGSEGV  11
  18. #define SIGSYS     12
  19. #define SIGPIPE  13
  20. #define SIGALRM  14
  21. #define SIGTERM  15
  22. #define SIGUSR1  16
  23. #define SIGUSR2  17
  24. #define SIGCLD     18
  25. #define SIGBREAK 21
  26. #define MAX_SIGNALS 22
  27.  
  28. #define SIGCHLD SIGCLD
  29.  
  30. #define SIG_DFL  0
  31. #define SIG_IGN  1
  32. #define SIG_ACK  4
  33. #define SIG_ERR  -1
  34.  
  35. #define SA_NOCLDSTOP    0x0001
  36. #define SA_SYSV     0x0002    /* Reset to SIG_DFL */
  37. #define SA_ACK        0x0004    /* Don't unblock automatically */
  38.  
  39. #define SIG_BLOCK    1
  40. #define SIG_UNBLOCK    2
  41. #define SIG_SETMASK    3
  42.  
  43. typedef unsigned long sigset_t;
  44.  
  45. struct sigaction {
  46.     DWORD    sa_handler;
  47.     sigset_t    sa_mask;
  48.     int     sa_flags;
  49. };
  50.  
  51. int    signal_handler_returned(void);
  52. long    sys_signal( int, long);
  53. int    sys_sigaction(int, DWORD, DWORD);
  54. int    sys_sigpending(DWORD);
  55. int    sys_sigprocmask(int, DWORD, DWORD);
  56. void    myexcep13 ( void );
  57.  
  58. #endif
  59.